package basics.day17.getPropertiesDemo;

import java.util.Properties;

public class test {
    public static void main(String[] args) {
        fun_1();
    }

    public static void fun_1() {
        Properties p = System.getProperties();
        /*
        getProperties()  确定当前的系统属性。
         */
        System.out.println(p);
        // 当前的系统属性
        /*
        {sun.desktop=windows, awt.toolkit=sun.awt.windows.WToolkit, java.specification.version=11, sun.cpu.isalist=amd64, sun.jnu.encoding=GBK, java.class.path=E:\study\java-study\out\production\java-study, java.vm.vendor=Oracle Corporation, sun.arch.data.model=64, user.variant=, java.vendor.url=http://java.oracle.com/, user.timezone=, os.name=Windows 10, java.vm.specification.version=11, sun.java.launcher=SUN_STANDARD, user.country=CN, sun.boot.library.path=C:\Program Files\Java\jdk-11.0.2\bin, sun.java.command=basics.day17.getPropertiesDemo.Test, jdk.debug=release, sun.cpu.endian=little, user.home=C:\Users\喜子, user.language=zh, java.specification.vendor=Oracle Corporation, java.version.date=2019-01-15, java.home=C:\Program Files\Java\jdk-11.0.2, file.separator=\, java.vm.compressedOopsMode=Zero based, line.separator=
, java.specification.name=Java Platform API Specification, java.vm.specification.vendor=Oracle Corporation, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, user.script=, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, java.runtime.version=11.0.2+9-LTS, user.name=喜子, path.separator=;, os.version=10.0, java.runtime.name=Java(TM) SE Runtime Environment, file.encoding=UTF-8, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, java.vendor.version=18.9, java.vendor.url.bug=http://bugreport.java.com/bugreport/, java.io.tmpdir=C:\TMP\, java.version=11.0.2, user.dir=E:\study\java-study, os.arch=amd64, java.vm.specification.name=Java Virtual Machine Specification, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.os.patch.level=, java.library.path=C:\Program Files\Java\jdk-11.0.2\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\soft\nginx\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\soft\Git\cmd;C:\soft\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Java\jdk-11.0.2\jre\bin;C:\Program Files\Java\jdk-11.0.2\bin;C:\Users\喜子\AppData\Local\Microsoft\WindowsApps;;D:\soft\WebStorm 2018.3.3\bin;;D:\soft\Microsoft VS Code\bin;C:\Users\喜子\AppData\Roaming\npm;D:\soft\IntelliJ IDEA 2018.3.3\bin;;., java.vendor=Oracle Corporation, java.vm.info=mixed mode, java.vm.version=11.0.2+9-LTS, sun.io.unicode.encoding=UnicodeLittle, java.class.version=55.0}

         */
    }
}
